vertically align text

Bug #497641 reported by naught101
92
This bug affects 20 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

It would be good to be able to align text relative to it's container, similar to vertical-align property in CSS. The options would be top (default), middle, bottom.

This should work for both flowed and unflowed text: in flowed text, the alignment would be relative to the container, and in unflowed text, relative to the starting point. If bottom-aligned text gets a new line added to it, the whole text shifts up one line to accommodate it.

At the moment, flowedtext that's larger than it's contiainer gets truncated at the bottom - with bottom-aligned text, it should be truncated at the top, I guess.

Tags: aligning text
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Wishlist
jazzynico (jazzynico)
tags: added: aligning
removed: alignment
Revision history for this message
Giuseppe "Oblomov" Bilotta (oblomov) wrote :

I am affected by this issue as well. In my case, I need to center some text vertically between two guides and horizontally between two other guides. My idea was to create a manually sized text box, snapping its sides to the four guides, and then horizontally and vertically center the text in it. Horizontal centering works by just setting a centered alignment, but vertical centering is missing. Some complicated workarounds have been suggested on the IRC channel, but having this option would greatly simplify this layout task (which I would expect to be rather common)

su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
fabtagon (fabtagon) wrote :

Even though the report is old, here's a hint for the records on how to accomplish vertically aligned text in boxes 'by hand'.

Create a box.
Create a text.
(Move text somewhere into the box.)
Select both text and box.
Menu "Object" > "Align and Distribute" (a panel pops up)
In top part of panel, select "center on vertical axis" (there is one to select on horizontal axis as well).
Voila, your text is now exactly centered in the box.

Drawback: You'll have to go through the procedure again whenever you change the box' or text's size.

Revision history for this message
Victor Westmann (victor.westmann) wrote :

This feature would be neat to have in the app! <3

Revision history for this message
wright_left (wright-left) wrote :

I needed this feature just today.

Revision history for this message
Chris L Baker (col-b) wrote :

This would be useful. fabtagon's suggestion works in many cases where the box is rectangular, but when it's not (i.e. it's been flown into a shape like a hexagon) this doesn't really work well. Seems like this would be a pretty useful feature.

Revision history for this message
Charlie (collinslyle) wrote :

I hope this feature is added soon.

Revision history for this message
Plecto Rincus (plecto) wrote :

Me too would like to see this feature in Inkscape soon!

Revision history for this message
Ben Stanley (ben-stanley) wrote :

Vertical alignment {Top, Middle, Bottom} is a standard feature in Visio.
Inkscape needs this feature.

Revision history for this message
Pedro Henrique Tancredo Campos (pedrohtancredo) wrote :

Any progress?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.